<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <!-- Any Other things should follow these 3 meta above -->
    <title>买过的商品</title>
    <!-- Bootstrap -->
    <link href="/bootstrap/dist/css/bootstrap.css" rel="stylesheet"/>
    <link href="/css/common.css" rel="stylesheet"/>
    <link href="/css/buyer_center.css" rel="stylesheet"/>
    <link href="/css/pop-up.css" rel="stylesheet" media="all"/>
    <!-- Custom styles -->

    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script src="/js/common/jquery-3.1.1.min.js"></script>
    <script src="/js/login.js"></script>
    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="/js/common/html5shiv.min.js"></script>
    <script src="/js/common/respond.min.js"></script>
    <![endif]-->
</head>
<body>
<!-- this is the common top begin -->
<div class="container-fluid">
    <div data-th-replace="common_html/common_head"></div>
    <div class="row banner">
        <div class="col-xs-2 col-sm-2"></div>
        <div class="col-xs-8 col-sm-8">
            <div class="row">
                <div class="col-xs-3 logo"><a class="mr-15 " th:href="@{/}"><img src="/img/cute_logo.jpg" class="logo_wh"/></a></div>
                <div class="col-xs-5 font-bold">
                    <a class="mr-15 " th:href="@{/}">首页</a>
                    <a class="mr-15 glyphicon glyphicon-user" href="buyer_center.html" th:href="@{/buyer/center}">买家中心</a>
                    <a class="mr-15 glyphicon glyphicon-cog" href="buyer_setting.html" th:href="@{/buyer/buyer_setting}">设置</a>
                </div>
                <div class="col-xs-4 col-sm-4">
                    <form class="form-inline">
                        <div class="form-group" th:action="@{/product/searchGood}">

                            <input type="text" class="form-control search" id="search" name="search" placeholder="请输入商品名\关键词"/>

                        </div>
                        <button type="submit" class="search-btn">搜索</button>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- this is the common top end -->
<div class="container" >
    <div class="row">
        <div class="col-xs-2">
            <ul class="list-unstyled">
                <li class="font-red font-middle mt-10">全 部 功 能</li>
                <li class="mt-10 "><a th:href="@{/buyer/shopping_cart}"  href="/buyer/shopping_cart" class="font-black glyphicon glyphicon-shopping-cart"> 我的购物车</a> </li>
                <li class="mt-10 "><a th:href="@{/buyer/orders}" href="/buyer/bought_products" class="font-black glyphicon glyphicon-ok-circle"> 已买到的宝贝</a> </li>
                <!--<li class="mt-10 "><a th:href="@{/buyer/bought_shops}" href="/buyer/bought_shops" class="font-black glyphicon glyphicon-home"> 购买过的店铺</a> </li>-->
                <!--<li class="mt-10 "><a th:href="@{/buyer/comment_management}" href="/buyer/comment_management" class="font-black glyphicon glyphicon-list-alt"> 评价管理</a> </li>-->
            </ul>
        </div>
        <div class="col-xs-10" style="min-height: 500px">
            <div class="row mt-10">
                <ul class=" list-inline">
                    <li class="ml-10"><a th:href="@{/buyer/orders}" class="font-middle font-black" style="text-decoration: none">所有订单</a></li>
                    <li class="ml-10"><a th:href="@{/buyer/orders/waitdeliver}" class="font-middle font-black" style="text-decoration: none">待发货</a></li>
                    <li class="ml-10"><a th:href="@{/buyer/orders/alreadydeliver}" class="font-middle font-black" style="text-decoration: none">已发货</a></li>
                    <li class="ml-10"><a th:href="@{/buyer/orders/onrejection}" class="font-middle font-black" style="text-decoration: none">退款中</a></li>
                    <li class="ml-10"><a th:href="@{/buyer/orders/alreadyrejection}" class="font-middle font-black" style="text-decoration: none">已退款</a></li>
                    <li class="ml-10"><a th:href="@{/buyer/orders/success}" class="font-middle font-black" style="text-decoration: none">成功</a></li>
                </ul>
            </div>
            <div class="mt-20">
                <div class="tab-pane fade in active ">
                            <div class="row mt-20  bk-grey border-one" style="height: 30px;">
                                <div class="col-xs-1">订单编号</div>
                                <div class="col-xs-2">订单实付款金额</div>
                                <div class="col-xs-1">店铺名</div>
                                <div class="col-xs-2">图片</div>
                                <div class="col-xs-2">商品</div>
                                <div class="col-xs-1">单价</div>
                                <div class="col-xs-1">数量</div>
                                <div class="col-xs-2">交易状态</div>
                            </div>
                            <div class="row mt-20 bk-blue border-one" th:each="order : ${orders}">
                                <div class="col-xs-1" th:text="${order.Id}">订单号</div>
                                <div class="col-xs-2">
                                    <strong>￥</strong><span class="font-small" th:text="${order.totalPrice}">订单实付款金额</span>
                                </div>
                                <div class="col-xs-1">
                                    <span class="font-small"  th:text="${order.seller.shopName}">店铺名</span>
                                </div>
                                <div class="col-xs-2">
                                    <img alt="图片" style="width: 50px;height: 50px;" class="order_item_img" th:src="@{'/picture/'+${order.getProduct().getPictureId()}}"/><br/>
                                </div>
                                <div class="col-xs-2">
                                    <a href="#" th:href="@{'/product/product_detail/'+${order.product.id}}"><span class="font-small"  th:text="${order.product.name}">商品名称</span></a>
                                </div>
                                <div class="col-xs-1">
                                    <span class="font-small" th:text="${order.product.price}">单价</span>
                                </div>
                                <div class="col-xs-1">
                                    <span class="font-small"  th:text="${order.getOrderProduct().getProductNum()}">数量</span>
                                </div>
                                <div class="col-xs-2">
                                    <span class="font-small" th:if="${order.status} == '1'"  th:text="待发货">交易状态</span>
                                    <span class="font-small" th:if="${order.status} == '2'"  th:text="已发货">交易状态</span>
                                    <span class="font-small" th:if="${order.status} == '3'"  th:text="退货中">交易状态</span>
                                    <span class="font-small" th:if="${order.status} == '4'"  th:text="已退货">交易状态</span>
                                    <span class="font-small" th:if="${order.status} == '5'"  th:text="已完成">交易状态</span>
                                </div>
                            </div>
                </div>

            </div>
        </div>
    </div>
    <!-- /.row -->
    <div class="row">
        <div class="col-lg-2"></div>
        <div class="col-lg-10">
            <!--page begin-->
            <nav data-th-replace="common/pager"></nav>
            <!--page end -->
        </div>
    </div>
</div>

<!--This is the common footer Begin-->
<bottom data-th-replace="seller/sellercommon/bottom"></bottom>



<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="/js/common/jquery-3.1.1.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="/bootstrap/dist/js/bootstrap.min.js"></script>
</body>
</html>